package main.java.com.silence.vo;

import java.util.List;

/**
 * Author: silence
 * Date: 17-6-14
 */
public class Pager<E> {
    /** 第几页 */
    private int pageIndex;

    /** 每页多少条 */
    private int pageSize;

    /** 当页开始页面 */
    private int pageOffset;

    /** 每一页的总条数 */
    private int totalRecord;

    /** 总页数 */
    private int totalPage;

    private List<E> data;

    public Pager() {
    }

    @Override
    public String toString() {
        return "Pager{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", pageOffset=" + pageOffset +
                ", totalRecord=" + totalRecord +
                ", totalPage=" + totalPage +
                ", data=" + data +
                '}';
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageOffset() {
        return pageOffset;
    }

    public void setPageOffset(int pageOffset) {
        this.pageOffset = pageOffset;
    }

    public int getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
        this.totalRecord = totalRecord;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<E> getData() {
        return data;
    }

    public void setData(List<E> data) {
        this.data = data;
    }
}
